scan

fun scan(from: Context, clientId: String, config: TswScannerConfig = TswScannerConfig(), onResult: (TswScanResult) -> Unit)

Launches a sidewall scan.

Parameters

from

An Android Context (an Activity context) used to present the full-screen scanner.

clientId

Your Anyline Cloud API client ID, used to authenticate the upload. This is separate from your SDK license key.

config

Optional TswScannerConfig; override UI strings via TswScannerConfig.texts (see io.anyline.tiretread.sdk.tsw.ui.configs.TswScannerTexts). Omit it to use the defaults.

onResult

Invoked exactly once, on the main thread, with the TswScanResult outcome.